package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * SY_EmpAreaPower实体类
 * 
 * @author 
 *
 */
public class SyEmpareapower {
	/***/
	private Object id; 
	/***/
	private Integer EmpID; 
	/***/
	private Integer AreaID; 
	/**
	 * 实例化
	 */
	public SyEmpareapower() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public SyEmpareapower(JSONObject obj) {
		this();
		this.setId(obj.get("id"));
		if (obj.get("EmpID") instanceof Number) {
			this.setEmpID(((Number) obj.get("EmpID")).intValue());
		}
		if (obj.get("AreaID") instanceof Number) {
			this.setAreaID(((Number) obj.get("AreaID")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getId() != null) {
			result.put("id",this.getId());
		}
		if (this.getEmpID() != null) {
			result.put("EmpID",this.getEmpID());
		}
		if (this.getAreaID() != null) {
			result.put("AreaID",this.getAreaID());
		}
		return result;
	}
	
	
	/**
	 * 获取id
	 * 
	 * @return
	 */
	public Object getId() {
		return id;
	}

	/**
	 * 设置id
	 * 
	 * @param id
	 */
	public void setId(Object id) {
		this.id = id;
	}
	
	/**
	 * 获取EmpID
	 * 
	 * @return
	 */
	public Integer getEmpID() {
		return EmpID;
	}

	/**
	 * 设置EmpID
	 * 
	 * @param EmpID
	 */
	public void setEmpID(Integer EmpID) {
		this.EmpID = EmpID;
	}
	
	/**
	 * 获取AreaID
	 * 
	 * @return
	 */
	public Integer getAreaID() {
		return AreaID;
	}

	/**
	 * 设置AreaID
	 * 
	 * @param AreaID
	 */
	public void setAreaID(Integer AreaID) {
		this.AreaID = AreaID;
	}

	@Override
	public String toString() {
		return "SyEmpareapower [id=" + id + " , EmpID=" + EmpID + " , AreaID=" + AreaID + "  ]";
	
	}
	
	
}
